import 'package:people_big_people/bean/testReq/juhe.dart';
import 'package:people_big_people/net/dio_manager.dart';

var apiPost = ApiPost.instance;

class ApiPost {
  factory ApiPost() => _getInstance();

  static ApiPost get instance => _getInstance();
  static ApiPost? _instance;

  ///初始化方法
  ApiPost._internal();

  static ApiPost _getInstance() {
    return _instance ??= ApiPost._internal();
  }

  Future<dynamic> queryEvent(Juhe req) =>
      dioManager.postHttp("http://v.juhe.cn/todayOnhistory/queryEvent.php", req);
}
